package cn.cdliux.spring.beans.factory.support;

import cn.cdliux.spring.beans.BeansException;
import cn.cdliux.spring.core.io.Resource;
import cn.cdliux.spring.core.io.ResourceLoader;

/**
 * Bean 定义读取接口
 * @author liuxiang
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;


    void loadBeanDefinitions(Resource... resources) throws BeansException;


    void loadBeanDefinitions(String location) throws BeansException;


    void loadBeanDefinitions(String... locations) throws BeansException;

}
